#include "namedPipe.hpp"

int main()
{
    NamedPipe fifo(gPathname, User); // write

    // 打开管道
    if (fifo.OpenForWrite())
    {
        std::cout << "client open named pipe done" << std::endl;
        while(1)
        {
            std::cout << "please enter->" << std::endl;
            std::string msg;
            std::getline(std::cin, msg);
            fifo.WriteNamedPipe(msg);
        }
    }
    return 0;
}